from peewee import *

db = MySQLDatabase(
    host="127.0.0.1",
    user="root",
    password="root",
    database="lw"
)

class BaseModel(Model):
    class Meta:
        database=db

class TestSchool(BaseModel):
    name=CharField(max_length=20,default='')
    age=CharField(max_length=20,default=20)

